package com.onurokan.someone4me;

import java.util.Collection;
import java.util.Iterator;

public class Utils {

	public static <T> String join(Collection<T> list, String joiner) {
		String value = "";
		Iterator<T> it = list.iterator();
		if (it.hasNext()) {
			value += it.next().toString();
		}
		while (it.hasNext()) {
			value += joiner;
			value += it.next().toString();
		}
		return value;
	}
}
